<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .box{
            height: 270px;
            width: 150px;
            border: 1px solid #000;
            background-image: url(./image/3.webp);
            /* 图片往上往左走为负值 */
            background-position: 100% 0%;
            animation: move 3s linear infinite;
        }
        @keyframes move{
            0%{
                background-position: 0% 0%;
            }
            100%{
                background-position: 100% 0%;
            }
        }
    </style>
</head>
<body>
    <div class="box"></div>
</body>
</html>